package com.zrwl.poscloud.xo.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zrwl.poscloud.base.entity.MessageSms;
import com.zrwl.poscloud.base.superI.SuperMapper;
import com.zrwl.poscloud.xo.vo.MessageSmsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 短信 Mapper类
 *
 * @author 刘思童 AutoGenerate
 * @date 2022-09-08
 */
public interface MessageSmsMapper extends SuperMapper<MessageSms> {

    IPage<MessageSmsVO> getPageList(@Param("page") Page page, @Param("param") MessageSmsVO messageSmsVO);
    IPage<MessageSmsVO> getVerifyCodeList(Page page, @Param("param") MessageSmsVO messageSmsVO);
    List<MessageSmsVO> getMessageSmsByCreateTime(@Param("param") MessageSmsVO messageSmsVO);
    /**
     * 获取未过期的短信验证码
     * @return
     */
    List<MessageSmsVO> getUnexpiredSMSVerifyCode();
    /**
     * 获取未发送的短信验证码
     * @param unexpiredSMSVerifyCode
     * @return
     */
    List<MessageSmsVO> getUnsentSMSVerifyCode(@Param("param") List<MessageSmsVO> unexpiredSMSVerifyCode);
}
